home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / wam.arc / WAM2.DOC < prev    next >
Encoding:
Text File  |  1985-09-06  |  25.7 KB  |  793 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.                  ---  W A M --- 
  17.                Wow Another Modem Program.
  18.  
  19.           Copyright(c) N. Franks & Associates P/L 1985.
  20.              All rights reserved worldwide.
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.     Neville Franks.
  47.     3 Pullman Crt,
  48.     East St.Kilda
  49.     Victoria, 3183
  50.     Australia 
  51.     Ph. (03)528 2516
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  68.  
  69.  
  70.  
  71.  
  72.     **********************************************************************
  73.     ***   THIS RELEASE OF WAM IS PLACED INTO THE PUBLIC DOMAIN, NO     ***
  74.     ***   WARRANTY INTENDED OR IMPLIED.                    ***
  75.     ***   This program may be copied and used for NON-COMMERCIAL       ***
  76.     ***   purposes only.  Any commercial use conflicts with copyright  ***
  77.     ***   and the offenders may be liable for criminal prosecution.    ***
  78.     **********************************************************************
  79.  
  80.  
  81.     WAM is a portable, easy to use communications package.  It has a    
  82.     command  structure similar to the users operating system, with 
  83.     the addition of communications commands and a powerful 
  84.     programable shell.    WAM provides Dumb Terminal communications 
  85.     with  automatic buffering, as well as File transfer facilities 
  86.     using Christensen protocols.  CP/M and MSDOS operating systems 
  87.     are currently supported.  WAM is well behaved and does not 
  88.     interfere with the users operating system.
  89.  
  90.     WAM has two basic modes of operation Local and Remote.  In Local 
  91.     mode WAM works in a similar manner to most communications 
  92.     programs, ie. commands are issued from the local terminal to 
  93.     control the program.  However when in remote mode WAM is 
  94.     controlled from the system communicating with WAM.    The local 
  95.     console (host) still has a limited number of commands available 
  96.     such as returning WAM to local mode.  By adding autoanswer 
  97.     facilities to WAM a simple remote access system becomes possible.
  98.  
  99.     WAM makes use of a simple general purpose shell and command 
  100.     processor.    The shell allows multiple commands per line, and 
  101.     provides `if then else' and `while' constructs.  All commands 
  102.     return values back to the shell, which can then be used in `if' 
  103.     and `while' tests.    The shell is extensible, allowing new 
  104.     commands to be added easily.  Command aliases and variable 
  105.     substitution are also available.  Input to the shell can come 
  106.     from a file or the console.  This enables startup conditions to 
  107.     be set, or automated communications sessions to be held.
  108.  
  109.     WAM is written in C and adheres to Unix V7 standards.  The Aztec 
  110.     C compiler, assembler and linker have been used.   This compiler 
  111.     is available for a number of 8 and 16 bit Cpu's and also a 
  112.     variety of operating systems.  The current version of WAM is 
  113.     available for Cp/m-80, Cp/m-86 and MS-DOS 2 operating systems.  
  114.     DOS directories and Cp/m user areas are supported.    All operating 
  115.     system specific routines are contained in one source file, and 
  116.     hardware specific functions in another.
  117.  
  118.       This document briefly describes WAM Version 2.0.    This version 
  119.     of WAM is being placed in the public domain to illicit comment 
  120.     and suggestions.  WAM is an evolutionary product which is still 
  121.     under development and testing. The source code and documentation 
  122.     will probably be available at a later date for a nominal fee. 
  123.  
  124.  
  125.  
  126.  
  127.                     2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  134.  
  135.  
  136.     WAM COMMAND PROCESSOR USAGE.
  137.  
  138.     cmd ; cmd        where ; is the command separator.
  139.     IF   cmd        Start if block
  140.     ELSE [cmd]        else clause for if
  141.     FI            end if [else] block
  142.     WHILE cmd        Start while block
  143.     BREAK            Break out of while block
  144.     END            End while block
  145.     !cmd            Not operator - used with if & while
  146.  
  147.     eg. 
  148.     C>>while !test -m dcd ; echo -n waiting for carrier\r ; end
  149.  
  150.     C>>if yn run logon script y/n ? ; script logon ; fi
  151.  
  152.     C>>if del fred.c ; echo file deleted ; else echo file not found ; fi
  153.  
  154.     C>>if sb wam5.doc ; term ; rb ; else ; echo couldn't send file ;
  155.        sleep 5 ; fi
  156.  
  157.     The if/else constructs can be nested and blocks can span any 
  158.     number of lines.  You must be carefull to match if/else/fi pairs.  
  159.     If nothing happens when you enter a command it is probably 
  160.     because you are in an IF or ELSE block which is not being 
  161.     executed.  To get back to if level 0 enter FI until the message 
  162.     "No matching if" appears. 
  163.  
  164.     While loops must be contained on a single line and cannot be 
  165.     nested, they can however be within an if block, or have if blocks 
  166.     within them.  Break would normally be used with an if and will 
  167.     skip all commands until the matching end is encountered.  You can 
  168.     break out of an infinite loop by pressing any key on the keyboard 
  169.     (a few times).  This has the same effect as break.
  170.  
  171.     The not operator "!" is used to negate the result of commands. It 
  172.     is most useful with the while construct as in the example above.
  173.  
  174.  
  175.     WAM command line editing.
  176.  
  177.     WAM has provides some simple editing commands. 
  178.       ^R repeats the previous command line from the current position 
  179.      on the new cmd line up to the end of the previous one.
  180.       ^X deletes the command line.  ^R will restore it.
  181.       Delete & Backspace perform a destructive backspace.
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.                     3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  200.  
  201.  
  202.     WAM STARTUP OPTIONS AND SCRIPT FILES.
  203.  
  204.       WAM [-p] [filename [arg1...argn]]
  205.     -p enables priviledged mode.  This allows some normally 
  206.     restricted remote commands to be used.
  207.  
  208.     filename is an input command file (script).  This file will be     
  209.     processed when WAM starts, after which WAM will go into 
  210.     interactive mode.  If the cmd `bye' is in the file then WAM will 
  211.     return to the operating system.  If filename is not in the current 
  212.     directory then the directories specified in the dos path command 
  213.     will be searched. 
  214.     An example startup file might contain the following:-
  215.  
  216.       rem  this is a sample startup file
  217.       echo loading startup file
  218.       rem  connect to line and set baud rate
  219.       mdm on ; baud 300       
  220.       rem see if user wants to open a capture file
  221.       if yn open capture file y/n? 
  222.        cap open bbs ; cap xon ; cap on
  223.       fi
  224.       rem if carrier detected go into terminal mode else command mode
  225.       if test -m dcd ; term ; else echo no carrier detected ; fi
  226.  
  227.     The startup file would also be used for defining aliases and 
  228.     performing other initialization.  By using the rxwait commands 
  229.     etc; it is possible to automate a complete communications 
  230.     session with a script file.
  231.  
  232.  
  233.     The SCRIPT command provides the ability to load and run input 
  234.     files.  Scripts can be nested and can contain while loops, even 
  235.     if there is a while loop running in an outer level.  This 
  236.     provides a rudimentry method for running nested while loops, as 
  237.     do aliases. Script commands return the value of the last command 
  238.     executed back to the shell.  This enables scripts to determine 
  239.     the next action be taken by the caller.  Variable substitution is 
  240.     also provided.
  241.  
  242.       if script logon ; term ; else sb *.c ; fi
  243.  
  244.       where the logon script may be as follows:-
  245.     while !test -m dcd ; echo -n waiting for carrier\r ; end
  246.     if yn terminal mode y/n ?
  247.  
  248.     See also the script file `logon.wam' and the examples on page 11.
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.                     4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  266.  
  267.  
  268.     WAM COMMAND SUMMARY:-
  269.  
  270.     WAM commands can be entered in upper or lower case.
  271.  
  272.     `dpfe' means [d:][path][filename[.ext]] where filename & ext can 
  273.     be ambiguous in most cases.
  274.     Under Cp/m path can be `nn/x:' where nn is the cp/m user number 
  275.     and x: the drive specification. 
  276.  
  277.     `message' can include the following:-
  278.     \r      specifies a carriage return char
  279.     \n      specifies a new line char (line feed)
  280.     \b      specifies a back space char
  281.     \t      specifies a tab char
  282.     \f      specifies a form feed char
  283.     \"    specifies a double quote char
  284.     \\    specifies the '\' char
  285.     \nnn  where <nnn> is 1, 2 or 3 decimal digits which specify the 
  286.           value of the desired character.
  287.  
  288.     A message or string can also be enclosed in double quotes.  This 
  289.     allows whitespace or command separator characters to be included 
  290.     in strings.  ie, echo "    a space & cmd sep ;;; example"
  291.  
  292.     Multiple commands can be passed as whole by including them within 
  293.     single quotes.  This is mainly for use with the alias command.
  294.     ie, alias r 'rn $1 ; term'
  295.  
  296.     If a command has an alias with the same name the alias will be 
  297.     run in place of the command.  If this occurs, recursion is 
  298.     prevented by temporarily disabling aliasing.  An example would be 
  299.     `alias dir dir $1 -wdr'.  Entering `dir *.h' will alias into `dir 
  300.     *.h -wdr' with the built-in dir command being executed.  Aliases 
  301.     can be nested and used within script files.  An alias can use any 
  302.     built-in command, construct, other alias or script file and 
  303.     multiple commands can be used by entering them within single 
  304.     quotes as discussed above.  Aliases provide a powerful way to 
  305.     create new commands or just change the names of existing commands.
  306.  
  307.     Scripts and aliases provide variable substitution by matching 
  308.     parameters with $number strings, where number is between 0 and 9. 
  309.     `$0' is the script filename or alias command itself, and `$1-$9' 
  310.     are the corresponding variables in the command line.
  311.     eg.
  312.     Enter `alias e 'echo $2 ; term $1 ; dir $3 '' then 
  313.           `e hello john *.wam'  would be parsed into 
  314.           `echo john ; term hello ; dir *.wam'.
  315.  
  316.     To setup aliases in a script, which require variable 
  317.     substitution, preceed the `$' with a `\' ie. \$1.  This prevents 
  318.     substitution occuring.  See the script file `alias.wam' for 
  319.     examples.
  320.  
  321.  
  322.  
  323.  
  324.  
  325.                                     5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  332.  
  333.  
  334.     WAM COMMAND SUMMARY:-
  335.  
  336.     D - means dos only.   C - means cp/m only.
  337.     L - means valid in local mode only.
  338.     R - means valid in remote mode only.
  339.     P - means valid in remote mode if priviledged startup option was 
  340.          used.
  341.  
  342.  
  343.      Local/Remote commands.
  344.  
  345.         Name                Meaning
  346.         -------             -----------
  347.     DL  CLS                 Clear screen
  348.  
  349.         DF [d:]             Display free disk space.
  350.  
  351.         DIR [dpfe..] -dwpr  Directory display.  -d date order (dos),
  352.                              -w wide,  -p page, -r reverse order
  353.  
  354.      LP DEL dpfe [dpfe..] -a
  355.                             Delete file(s).     -a Ask first
  356.  
  357.      LP ERASE               See DEL
  358.  
  359.      LP ERA                 See DEL
  360.  
  361.         TYPE dpfe [dpfe..] -p
  362.                             Type file(s).      -p page mode
  363.  
  364.  
  365.         x:                  change default drive to `x:'
  366.  
  367.     D   CD [[d:]path]       Display current dos path or change to 
  368.                              new path.
  369.  
  370.     C   USER [nn]           Display/Change Cp/m user number.
  371.  
  372.      L  TERM [message]      If message is present send message, else
  373.                              go into terminal mode.
  374.  
  375.      L  RXWAIT [char]       Go into terminal mode.  When "char" is 
  376.                             received return to command mode.  If no 
  377.                             argument use char set by "set rxwait 
  378.                 char".  Returns true if `char' received 
  379.                             else false if terminal mode abandoned. 
  380.  
  381.      L  CAP [OPEN dpfe[-a]] [CLOSE] [ON OFF] [SAVE ZAP] [XON NONE] 
  382.                   [nnnn]
  383.  
  384.      L      OPEN [-a]       Open the file dpfe for capture buffer use.
  385.                             If the file exists, it will by default be
  386.                              opened in append mode. If the -a option 
  387.                              is used you will instead be given a choice.
  388.  
  389.  
  390.  
  391.                                     6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  398.  
  399.  
  400.      L      CLOSE           Closes the currently open capture file and 
  401.                             turns capture off.  Also closed when 
  402.                             leaving WAM.
  403.  
  404.      L      ON OFF          Sets capture mode Off/On.
  405.  
  406.      L      SAVE            Save the capture buffer to the currently 
  407.                              open file.
  408.  
  409.      L      ZAP             Zap the capture buffer.
  410.  
  411.      L      XON             Enables Xon/Xoff handshaking with auto 
  412.                              disk saves if capture file open.
  413.  
  414.      L      NONE            Disables Xon/Xoff handshaking
  415.  
  416.      L      nnnn            Sets the capture buffer size. 
  417.                             Default size is 16K
  418.  
  419.  
  420.         S [A B N]  dpfe [dpfe..]
  421.                             Send file(s) in Ascii, Batch or Normal 
  422.                             mode.  Batch and Normal mode use 
  423.                             Christensen protocol.  Batch mode is 
  424.                             compatible with YAM and Normal with 
  425.                             XMODEM and YAM.
  426.  
  427.         R [A B N] [path]    Receive file in Ascii, Batch or Normal 
  428.                             mode. If path is present files will be       
  429.                             placed in that path.
  430.  
  431.      L  BAUD [nnnn]         Display baud rate, or set new baud rate.
  432.  
  433.      L  MDM [ON OFF]        Display status or Enable/Disable Modem. 
  434.                             On sets DTR & RTS, while off resets them.
  435.  
  436.      L  SET                 Display current set parameters.
  437.  
  438.      L      STOP key        Set the stop key value.  The default stop 
  439.                              key is ^_
  440.  
  441.      L      RXWAIT char     Set the default rxwait character.  This 
  442.                             is used by the "rxwait" command with no 
  443.                             argument.
  444.  
  445.      L      PAUSE nnn       Set .1 sec timer variable.  This is 
  446.                             machine dependant and comes initialized 
  447.                             for the harware in use.  If you wish to 
  448.                             change it use the sleep command to 
  449.                             establish the best value.
  450.  
  451.      L      PACE nnn        Set pace variable.  This is used to slow 
  452.                             down WAM output when in remote mode.
  453.  
  454.  
  455.  
  456.  
  457.                                     7
  458.  
  459.  
  460.  
  461.  
  462.  
  463.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  464.  
  465.  
  466.      L      VIEW [ON OFF]   sets View mode off/on.  (Used in file
  467.                              transfers)
  468.  
  469.      L      VIEW [ASCII HEX] sets View mode to Ascii/Hex
  470.  
  471.      L  SLEEP [nnnn]        Sleep for nnn seconds.
  472.  
  473.  
  474.      L  REMOTE              Switch to remote mode.
  475.  
  476.      L  LISTEN              Listen for a call and answer it.  This is 
  477.                              currently only being used for testing.
  478.  
  479.      R  MSG [message]       Send message to host.  If no message 
  480.                              prompt for one.
  481.  
  482.         ECHO [on off] [[-n] message]        
  483.                             turn console echo on/off or echo message 
  484.                             to console.  if -n is specified then don't 
  485.                             send a NL sequence at end of message. If 
  486.                             no arguments display echo status.
  487.  
  488.         REM  [message]      message is just a remark.  Useful for 
  489.                             putting remarks in input files. this 
  490.                             function always returns true.
  491.  
  492.      L  TEST [-m [cts dsr ri dcd]] 
  493.                             returns rs-232 input status where:-
  494.                              cts is clear to send
  495.                              dsr is data set ready
  496.                              ri  is ring indicator
  497.                              dcd is data carrier detect
  498.  
  499.              [-f filename]  returns true if file `filename' exists.
  500.  
  501.      L  YN [message]        display message and wait for Y or N 
  502.                             response from console.  returns true if Y 
  503.                             pressed, else false.
  504.  
  505.      L  BYE                 Return to operating system.  Modem stays 
  506.                             connected.  If there is an open capture 
  507.                             file it will be closed. If the capture 
  508.                             buffer isn't empty you will be prompted 
  509.                             to save it first.
  510.  
  511.      L  QUIT                See BYE.  Modem is disconnected.
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.                                     8
  524.  
  525.  
  526.  
  527.  
  528.  
  529.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  530.  
  531.  
  532.     DL  DOS [prog [params]] Temporary Exit to DOS or Run prog.  WAM 
  533.                             remains resident and the modem stays 
  534.                             connected.  This lets you use any dos 
  535.                             commands or run any programs and then 
  536.                             return to WAM.  If prog isn't specified 
  537.                             then WAM invokes another copy of the dos 
  538.                             command processor. When you want to 
  539.                             return to WAM type "exit" at the DOS 
  540.                             prompt.  If prog is specified then it 
  541.                             will be run using params.  When it is 
  542.                             finished, control will be returned to WAM.  
  543.                             If prog is not found in the current 
  544.                             directory or along PATH then return 
  545.                             false. If prog contains a path spec then 
  546.                             that will be searched instead of the 
  547.                             current directory.
  548.  
  549.  
  550.      L  SCRIPT name [arg1...argn] 
  551.                             process script file "name" as input to       
  552.                             WAM. Script files can use all WAM 
  553.                             commands. There is no limit to the size 
  554.                             of a script and scripts can call other 
  555.                             scripts. A script returns the value of 
  556.                             the last command executed in the script 
  557.                             to the caller.  When a script returns 
  558.                             execution continues at the command 
  559.                             following the script command.  Scripts 
  560.                             can also use the while construct even if 
  561.                             there is one executing outside of it. The 
  562.                             arguments, if any are used for variable 
  563.                             substitution.
  564.  
  565.         ALIAS name [wordlist] 
  566.                             With no parameters displays all current 
  567.                             aliases, with just name displays the 
  568.                             alias for name if present.  Otherwise 
  569.                             wordlist is associated with name as a new 
  570.                             alias.  Wordlist is a single command, or 
  571.                             multiple commands enclosed in single 
  572.                             quotes.  When an alias is run it returns 
  573.                             the value of the last command executed to 
  574.                             the shell.
  575.  
  576.         ALIAS [off on]      Turns off/on all current aliases.
  577.  
  578.         UNALIAS name        Removes name from aliases.
  579.  
  580.  
  581.         HELP                Display brief help information.
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.                                     9
  590.  
  591.  
  592.  
  593.  
  594.  
  595.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  596.  
  597.  
  598.       HOST commands:-   These commands are initiated by pressing a single 
  599.                               key only on the host console.
  600.  
  601.         R or STOP KEY       Remote OFF.
  602.  
  603.         E                   Toggle host Echo Off/On.
  604.  
  605.         M                   Send message to remote.  You are prompted 
  606.                             for the message.
  607.  
  608.         B                   Bye - Return to operating system.  This 
  609.                              will be removed at a later date.
  610.  
  611.         H or ?              Help 
  612.  
  613.  
  614.       TERM commands:-   These commands are initiated by pressing the STOP KEY
  615.                          followed by the cmd key rapidly.
  616.  
  617.         C                   Toggle capture buffer off/on.  When on 
  618.                             text received in terminal mode is placed 
  619.                             into the capture buffer.
  620.  
  621.         Z                   Zap capture buffer
  622.  
  623.         S                   Save capture buffer.  A capture file must 
  624.                             already be open.
  625.  
  626.         STOP KEY            Exit term mode.  Returns true to command 
  627.                             processor if were using "term" or false 
  628.                             if using "rxchar".
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.                                    10
  656.  
  657.  
  658.  
  659.  
  660.  
  661.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  662.  
  663.  
  664.     COMMAND SCRIPT EXAMPLES:
  665.  
  666.     rem a sample script to download files from an rcpm system and 
  667.     rem disconnect when finished.
  668.     mdm on ; baud 300
  669.     while !test -m dcd ; echo -n waiting for carrier\r ; end
  670.     if test -m dcd
  671.       sleep 1 ; term \n\n\n            ; tell'm were here 
  672.       set rxwait ^G                   ; rem bell means ready for name
  673.       rxwait ; term John ; rxwait ; term Citizen 
  674.       rxwait >                              ; rem wait for cp/m prompt
  675.       term xyam                             ; rem fire up xyam etc;
  676.       set rxwait ?
  677.       rxwait ; term b1:                     ; rem tell it what to do
  678.       term b1:                              ; rem log to B0:
  679.       rxwait ; term sb *.c *.h              ; rem send some files
  680.       rb                                    ; rem receive in batch mode
  681.       rxwait ; term quit                    ; rem back to cp/m
  682.       rxwait ; term bye ; rxwait ; term n   ; rem all done disconnect
  683.       bye
  684.     else
  685.       echo logon \7abandoned
  686.     fi
  687.  
  688.  
  689.     rem a sample ibbs logon script
  690.     rem usage: wam5 logon firstname lastname password
  691.     rem   given script filename is `logon'
  692.     rem
  693.     echo \nlogon to ibbs
  694.     mdm on ; baud 300
  695.     cap open ibbs ; cap xon ; cap on
  696.     while !test -m dcd ; echo -n waiting for carrier\r                   \r ; end
  697.     if test -m dcd
  698.       sleep 1 ; term \n\n\n                 ; rem let'm no were here
  699.       if rxwait ? 
  700.         term $1                             ; rem send firstname
  701.         rxwait ? ; term $2                  ; rem then lastname
  702.         set rxwait >                                ; rem used from now on
  703.         rxwait   ; term $3                  ; rem password
  704.         rem whatever
  705.         rxwait   ; term m                   ; rem message subsystem
  706.         term 
  707.         rxwait   ; term g                   ; rem goodbye
  708.         rxwait   ; term y                   ; rem Yes i'm sure
  709.         term
  710.       else
  711.         echo logon failed $1
  712.       fi
  713.     else
  714.       echo logon abandoned $1
  715.     fi
  716.  
  717.  
  718.  
  719.  
  720.  
  721.                                    11
  722.  
  723.  
  724.  
  725.  
  726.  
  727.     WAM Vers 2.00 Documentation.  4/May/85  (c) N. Franks & Assoc P/L 1985
  728.  
  729.  
  730.     TYPICAL MODEM RS-232 CONNECTION
  731.  
  732.        MODEM       PC
  733.          1   ----   1          PG.  Protective ground
  734.          2   <--    2          TD.  Transmit Data
  735.          3    -->   3          RD.  Receive  Data
  736.          4   <--    4          RTS. Request to send
  737.          5    -->   5          CTS. Clear to send 
  738.          6    -->   6          DSR. Data set ready
  739.          7   ----   7          SG.  Signal ground
  740.          8    -->   8          DCD. Data carrier detect
  741.         20   <--   20          DTR. Data terminal ready
  742.         22    -->  22          RI.  Ring indicator
  743.  
  744.     Handshake Lines.
  745.     RTS - Indicates the pc is ready to transmit data. The modem then 
  746.           enables it's transmit carrier and sets DSR.
  747.     DSR - Indicates the modem is ready to establish communications
  748.  
  749.     DCD - Indicates the modem is detecting carrier.
  750.  
  751.     RI  - Indicates that a telephone ringing signal has been received 
  752.           by the modem.
  753.  
  754.     DTR - Informs the modem the pc is ready to communicate.  The 
  755.           modem then connects to the phone line, and normally 
  756.           acknowledges by setting CTS.
  757.     CTS - Indicates the modem is ready to establish communications.
  758.  
  759.  
  760.     NOTES:
  761.     Ascii Send and Receive are not currently implemented.
  762.     Viewing of received data has been temporarily removed.
  763.     The stop key is used to abandon terminal mode and also to abort 
  764.     Send/Recv commands.  The current version of WAM does not make use 
  765.     of any RS-232 input lines, but has a complete set of functions 
  766.     for monitoring their status.  The ouput lines DTR and RTS are 
  767.     set/reset by mdm on/off commands respectively.  Setting DTR 
  768.     normally enables the modem to connect to the line. The mdm 
  769.     command with no options displays the status of the RS-232 lines.  
  770.     The test -m command permits testing of individual input lines.  
  771.     WAM will happily send and receive files at 4800 baud on the PC 
  772.     and faster on some other machines.  In Terminal mode WAM has 
  773.     trouble keeping up at 4800 baud without the send system slowing 
  774.     down it's output by using line pacing or some equivalent 
  775.     system.  WAM itself slows down output when in remote mode. The 
  776.     amount being determined by the value set in the pace variable. 
  777.  
  778.      ** Unix is a trademark of Bell Labs.
  779.      ** CP/M is a trademark of Digital Research.
  780.      ** DOS  is a trademark of Microsoft.
  781.      ** AZTEC C II is copyright(c) Manx Software Systems.
  782.  
  783.     /**--  The End  --**/ 
  784.  
  785.  
  786.  
  787.                                    12
  788.  
  789.  
  790.  
  791.  
  792.  
  793.